package com.itheima.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * @author itheima
 * @since 2021-10-25
 */
public interface OrderDao {

    @Update("BEGIN; UPDATE order SET id = 1; ROLLBACK;")
    public void save();

    @Insert("INSERT INTO order VALUES(1,'tom')")
    public void add();
}
